﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace Domain
{
    public class CategoriesRepository
    {
        public static IEnumerable<Category> getCategories()
        {
            List<Category> categories = new List<Category>();

            Category c1 = new Category { Id = 1, Name = "Category 1" };
            categories.Add(c1);
            Category c2 = new Category { Id = 2, Name = "Category 2" };
            categories.Add(c2);

            return categories;
        }

        public static object getCategory(int id)
        {
            return new Category() { Id = id, Name = "Category " + id };
        }
    }
}